package cn.iocoder.yudao.module.vos.controller.admin.activitytask.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 活动任务详情 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ActivityTaskRespVO {

    @Schema(description = "任务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2980")
    @ExcelProperty("任务ID")
    private Long id;

    @Schema(description = "请求的唯一ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8282")
    @ExcelProperty("请求的唯一ID")
    private String requestId;

    @Schema(description = "状态码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("状态码")
    private String code;

    @Schema(description = "返回的消息", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("返回的消息")
    private String message;

    @Schema(description = "批次ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "5486")
    @ExcelProperty("批次ID")
    private String batchId;

    @Schema(description = "导入的记录数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("导入的记录数量")
    private Integer importNum;

    @Schema(description = "记录的创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("记录的创建时间")
    private LocalDateTime createTime;

    @Schema(description = "任务执行平台")
    @ExcelProperty(value = "任务执行平台", converter = DictConvert.class)
    @DictFormat("marketing_tool") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String marketingTool;

}